Rails.application.routes.draw do
  resources :project_webs do 
    post :set_settings
    post :refresh_code
  end

  resources :projects do 
    member do
      post :set_settings
      post :send_msg
      get  :access_token
      post :cls_msg
      post :cls_push
      post :recv
      # v2
      get  :show_v2
      post :set_settings_v2
      get :set_settings_v2
      post :cls_push_v2
      get :cls_push_v2
      post :recv_v2
      get :recv_v2
      post :get_open_api_auth_token_v2
      post :get_session_v2
      get :get_session_v2
      post :get_customer_by_token_v2
      get :get_customer_by_token_v2
      post :get_customer_v2
      get :get_customer_v2
      post :send_message_v2
      get :send_message_v2
      post :survey_vote_v2
      get :survey_vote_v2
      post :queue_status_v2
      get :queue_status_v2
      post :shut_queues_v2
      get :shut_queues_v2
      post :customer_status_v2
      get :customer_status_v2
    end
  end
  devise_for :users
  root to: "projects#index"
end
